package com.oa.oaspcpersonalcenterapi.fallback;


import com.oa.oaspccommon.dto.ActionResult;
import com.oa.oaspccommon.dto.UserInfo;
import com.oa.oaspccommon.po.User;
import com.oa.oaspcpersonalcenterapi.api.UserServiceApi;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * Created by jeffrey on 2021/4/13.
 */
@Component
public class UserServiceApiFallback implements UserServiceApi {

    @Override
    public User login(UserInfo userInfo) {
        return null;
    }

    @Override
    public List<User> findUsers() {
        List<User> all=new ArrayList<>();
        all.add(new User(10,"sdx","sdx","sdx","sdx","sdx","sdx","sdx","sdx","sdx","sdx","sdx", new Date(),"sdx","sdx", new Date(),"sdx","sdx", new Date(),"sdx","sdx","sdx","sdx","sdx","sdx","sdx"));
        return all;
    }

    @Override
    public User findUserByUid(int uid) {
        return null;
    }

    @Override
    public boolean addUser(User user) {
        return false;
    }

    @Override
    public boolean updateUser(User user) {
        return false;
    }

    @Override
    public boolean deleteUserByUid(int uid) {
        return false;
    }

    @Override
    public ActionResult changePassword(UserInfo userInfo) {
        return null;
    }


}
